package com.fx.server.controller;

import com.fx.common.api.FxAuthServer;
import com.fx.common.domain.ImageCode;
import com.fx.common.domain.R;
import com.fx.server.server.CacheImageCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FxAuthController implements FxAuthServer {

    @Autowired
    private CacheImageCodeService cacheImageCodeService;

    @Override
    @GetMapping("/codeImage")
    public R<ImageCode> getImageCode() {
        return R.success(cacheImageCodeService.cacheImageCode());
    }




}
